package cn.ckx.coding.moudle.user.event;

import cn.ckx.coding.moudle.user.entity.UserEntity;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


/**
 * @ClassName UserRegisterListener
 * @Description
 * 
 * 用户注册事件监听
 * 
 * @Author kunxin.cai
 * @Date 2021/5/11
 * @Version 1.0
 **/
@Slf4j
@Component
public class UserRegisterListener {

    @Async
    @Order
    @EventListener(UserRegisterEvent.class)
    public void eventListener(UserRegisterEvent event) {
        UserEntity registerUser = (UserEntity) event.getSource();
        
        //业务处理
    }

}
